

#include "orangepch.h"
#include "RendererCommand.h"
#include "Platform/OpenGL/OpenGLRendererApi.h"
namespace Orange
{
    RendererApi *RendererCommand::s_Api = new OpenGLRendererApi();
    void RendererCommand::Init()
    {
        s_Api->Init();
    }

    void RendererCommand::SetClearColor(const glm::vec4 &color)
    {
        s_Api->SetClearColor(color);
    };
    void RendererCommand::Clear()
    {
        s_Api->Clear();
    };
    void RendererCommand::Draw(const Ref<VertexArray> &VertexArray)
    {
        s_Api->Draw(VertexArray);
    };
}